<template>
  <el-main>
    <router-view :key="key" />
  </el-main>
</template>

<script setup>
import { ref, watchEffect } from 'vue';
import { useRoute } from 'vue-router';

const key = ref('');
const route = useRoute();

watchEffect(() => {
  //console.log(route.path);
  key.value = route.path;
});
</script>

<style scoped>
.el-main {
  min-height: 650px;
}
</style>
